<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
    <style>
        .red{
            color: red;
            font-size: 22px;
        }
        .blue{
            color: skyblue ;
            font-size: 33px;
        }
        .fontBig{
            font-size: 33px;
        }
        /* [v-clock]{
            display: none;
        } */
    </style>
</head>

<body>
    <div id="app">
        <img :src="photourl" alt="这是一张天空的照片" v-bind:height="h" v-bind:width="w" :title="title" style="display: block;" >
        <div :class="varStyle">星期一</div>
        <div :class="[red,fontBig]" >星期二</div>
        <div v-bind:class="{blue:true,red:num>0}" >星期三</div>
    </div>
</body>
<script>
    var vm = new Vue({
        el: "#app",
        data: {
            photourl: "img/1.png",
            h: "220px",
            w: "220px",
            title: "It a sky photo",
            num:-1,
            varStyle:{
                red:true,
                blue:false
            },
            /* created() {
                alert("创建中")
            }, */
        }
    })
</script>

</html>